﻿@model Chapter3Applications.Models.ViewModels.DeleteItemsViewModel

@{
    ViewBag.Title = "Delete Products";
}

<h2>Delete Products</h2>

<div>
        @using (Html.BeginForm())
        {
            <p>Select the products to delete:</p>
            foreach(KeyValuePair<String, Boolean> myProduct in Model.Items)
            {
                <p>
                @Html.CheckBoxFor(x => x.Items[myProduct.Key])
                @Html.Label(myProduct.Key)
                </p>
            }
            <input type="submit" value="Remove Products">
        }
</div>    
